#pragma once
#include "cocos2d.h"
#include "PlaneFactory.h"

USING_NS_CC;

class PlaneBank : public CCObject
{
public:
	PlaneBank(void);
	~PlaneBank(void);

	void initBank();
	void clearBank();
	PlaneFactory* getPlaneFactoryById(char* id);
	CCString* getIdByIndex(int i);
	CC_SYNTHESIZE_RETAIN(CCDictionary*, _listPlaneFactories, PlaneFactories);
	CC_SYNTHESIZE_RETAIN(CCArray*, _listPlaneId, PlaneIds);

	static PlaneBank* _instance;
	static PlaneBank* sharedPlaneBank();
};

